import request from '@/utils/request'

export const fetchIndex = () => {
  return request({
    url: 'index/index',
    method: 'get',
  })
}

export const search = params => {
  return request({
    url: 'index/search',
    method: 'get',
    params,
  })
}
